package com.ruoyi.central.enums;

import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.ruoyi.common.config.jackson.IEnumDeserializer;
import lombok.Getter;

/**
 * @Classname AreaTypeEnum
 * @Author: sunluquan
 * @Date: 2022/5/8 18:01
 * @Description TODO
 * 区域类型枚举
 */
@Getter
@JsonDeserialize(using = IEnumDeserializer.class)
public enum AreaTypeEnum implements IEnum<Integer> {
    //manual operation
    MANUAL_OPERATION(1,"手动"),
    AUTOMATIC_OPERATION(2,"自动")
    ;


    @JsonValue
    private int value;
    private String description;

    AreaTypeEnum(int value, String description) {
        this.value = value;
        this.description = description;
    }
    @Override
    public Integer getValue() {
        return value;
    }
}
